package com.home.Entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="CTHOADON")
public class CTHoaDon {
	
	@Id
	@Column(name="HDO_MASO")
	private long maso;
	@ManyToOne
	@JoinColumn(name="HDO_HOADON")
	private HoaDon hoaDon;
	@ManyToOne
	@JoinColumn(name="HDO_MON")
	private Mon mon;
	@Column(name="HDO_SOLUONG")
	private int soLuong;
	@Column(name="HDO_DONGIA")
	private BigDecimal donGia;
	@Column(name="HDO_GHICHU")
	private String ghiChu;
	public long getMaso() {
		return maso;
	}
	public void setMaso(long maso) {
		this.maso = maso;
	}
	public HoaDon getHoaDon() {
		return hoaDon;
	}
	public void setHoaDon(HoaDon hoaDon) {
		this.hoaDon = hoaDon;
	}
	public Mon getMon() {
		return mon;
	}
	public void setMon(Mon mon) {
		this.mon = mon;
	}
	public int getSoLuong() {
		return soLuong;
	}
	public void setSoLuong(int soLuong) {
		this.soLuong = soLuong;
	}
	public BigDecimal getDonGia() {
		return donGia;
	}
	public void setDonGia(BigDecimal donGia) {
		this.donGia = donGia;
	}
	public String getGhiChu() {
		return ghiChu;
	}
	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}
	
	
	
	
}
